package com.tongji.seller.command
{
	import com.tongji.seller.events.DeleteProductEvent;
	import com.tongji.seller.service.StoreProductService;
	
	import org.robotlegs.mvcs.Command;
	
	
	/**
	 *caddy
	 *2012-1-5
	 *
	 */
	public class DeleteProductCommand extends Command
	{
		[Inject]
		public var service:StoreProductService;
		
		[Inject]
		public var event:DeleteProductEvent;
		
		override public function execute():void
		{
			service.deletePro(int(event.product.pid));
		}
	}
}